package com.tangula.web.console;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

import com.tangula.web.config.web.WebConfigure;

/**
 * Web应用启动类.
 * @author 王东石 &lt;wangds2016@163.com&gt;
 *
 */
@EntityScan(basePackages= {"com.tangula.**.entity"})
@ComponentScan(basePackages= {"com.tangula"})
@EnableJpaRepositories("com.tangula") 
@Import(value= {WebConfigure.class})
@SpringBootApplication
public class WebAppStartup {
	
	public static void main(String[] args) {
		SpringApplication.run(WebAppStartup.class, args);
	}

}
